<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {font-size: small}
-->
</style>
</head>

<body>
<table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="9">รายละเอียดของผู้ใช้</td>
      </tr>
      <tr>
        <td width="79"><span class="style1">admin</span></td>
      <td width="129"><span class="style1">password</span></td>
        <td width="28"><span class="style1">ชื่อ</span></td>
        <td width="77"><span class="style1">จัีงหวัด </span></td>
        <td width="129"><span class="style1">unit_code</span></td>
        <td width="30"><span class="style1">tel</span></td>
        <td width="39"><span class="style1">fax</span></td>
        <td width="185"><span class="style1">office</span></td>
        <td width="90">&nbsp;</td>
      </tr>
      <tr>
        <td><p>&nbsp;</p>
          </td>
      <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><input name="uupdate" type="button" id="uupdate" value="ปรับปรุงข้อมูล"></td>
      </tr>
    </table>
</body>
</html>
<?php
$username = "admin";
include('config.inc.php');
$sql = "select * from users ";
$sql .= "where username='$username'";
$result = mysql_query($sql);
@$num = mysql_num_rows($result);
while($arr = mysql_fetch_array($result)){
	echo $arr[username]."".$arr[password]."".$arr[name];
}

?>